#include"Task.hpp"
#include"Threadpool.hpp"
#include<unistd.h>
int main()
{
  ThreadPool<Task>* tp=new ThreadPool<Task>();
  tp->InitThreadPool();
  srand((unsigned int)time(NULL));
  const char* op="+-*/%";
  while(true)
  {
    sleep(1);
    int x=rand()%100+1;
    int y=rand()%100+1;
    Task t(x,y,op[x%5]);
    tp->Push(t);
  }

  return 0;
}
